<?php


namespace Tbf\Bundle\YntAuthBundle\Model;
use Tbf\Bundle\CallbackSerializerBundle\CallbackInterface;

class LoginRequest {
    /**
     * @var Media
     */
    protected $media;
    /**
     * 用户返回的页面回调
     * @var CallbackInterface
     */
    protected $page_callback;
    /**
     * 附加数据
     * @var array
     */
    protected $extra_data;
    function __construct($input){
        $this->page_callback = $input['page_callback'];
    }
    /**
     * @param \Tbf\Bundle\CallbackSerializerBundle\CallbackInterface $page_callback
     */
    public function setPageCallback(CallbackInterface $page_callback)
    {
        $this->page_callback = $page_callback;
    }

    /**
     * @return \Tbf\Bundle\CallbackSerializerBundle\CallbackInterface
     */
    public function getPageCallback()
    {
        return $this->page_callback;
    }


    /**
     * @param array $extra_data
     */
    public function setExtraData($extra_data)
    {
        $this->extra_data = $extra_data;
    }

    /**
     * @return array
     */
    public function getExtraData()
    {
        return $this->extra_data;
    }

    /**
     * @param \Tbf\Bundle\YntAuthBundle\Model\Media $media
     */
    public function setMedia($media)
    {
        $this->media = $media;
    }

    /**
     * @return \Tbf\Bundle\YntAuthBundle\Model\Media
     */
    public function getMedia()
    {
        return $this->media;
    }

}